<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <title>Rails::Engine::Configuration</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <link rel="stylesheet" href="../../../css/reset.css" type="text/css" media="screen" />
<link rel="stylesheet" href="../../../css/main.css" type="text/css" media="screen" />
<link rel="stylesheet" href="../../../css/github.css" type="text/css" media="screen" />
<script src="../../../js/jquery-1.3.2.min.js" type="text/javascript" charset="utf-8"></script>
<script src="../../../js/jquery-effect.js" type="text/javascript" charset="utf-8"></script>
<script src="../../../js/main.js" type="text/javascript" charset="utf-8"></script>
<script src="../../../js/highlight.pack.js" type="text/javascript" charset="utf-8"></script>

</head>

<body>     
    <div class="banner">
        
            <span>Ruby on Rails v4.0.0</span><br />
        
        <h1>
            <span class="type">Class</span> 
            Rails::Engine::Configuration 
            
                <span class="parent">&lt; 
                    
                    <a href="../Railtie/Configuration.html">Rails::Railtie::Configuration</a>
                    
                </span>
            
        </h1>
        <ul class="files">
            
            <li><a href="../../../files/railties/lib/rails/engine/configuration_rb.html">railties/lib/rails/engine/configuration.rb</a></li>
            
        </ul>
    </div>
    <div id="bodyContent">
        <div id="content">
  


  


  
  


  


  
    <!-- Method ref -->
    <div class="sectiontitle">Methods</div>
    <dl class="methods">
      
        <dt>A</dt>
        <dd>
          <ul>
            
              
              <li>
                <a href="Configuration.html#method-i-autoload_once_paths">autoload_once_paths</a>,
              </li>
            
              
              <li>
                <a href="Configuration.html#method-i-autoload_paths">autoload_paths</a>
              </li>
            
          </ul>
        </dd>
      
        <dt>E</dt>
        <dd>
          <ul>
            
              
              <li>
                <a href="Configuration.html#method-i-eager_load_paths">eager_load_paths</a>
              </li>
            
          </ul>
        </dd>
      
        <dt>M</dt>
        <dd>
          <ul>
            
              
              <li>
                <a href="Configuration.html#method-i-middleware">middleware</a>
              </li>
            
          </ul>
        </dd>
      
        <dt>N</dt>
        <dd>
          <ul>
            
              
              <li>
                <a href="Configuration.html#method-c-new">new</a>
              </li>
            
          </ul>
        </dd>
      
        <dt>P</dt>
        <dd>
          <ul>
            
              
              <li>
                <a href="Configuration.html#method-i-paths">paths</a>
              </li>
            
          </ul>
        </dd>
      
        <dt>R</dt>
        <dd>
          <ul>
            
              
              <li>
                <a href="Configuration.html#method-i-root-3D">root=</a>
              </li>
            
          </ul>
        </dd>
      
    </dl>
  

  



  

    

    

    


    
      <!-- Section attributes -->
      <div class="sectiontitle">Attributes</div>
      <table border='0' cellpadding='5'>
        
          <tr valign='top'>
            <td class='attr-rw'>
              [W]
            </td>
            <td class='attr-name'>autoload_once_paths</td>
            <td class='attr-desc'></td>
          </tr>
        
          <tr valign='top'>
            <td class='attr-rw'>
              [W]
            </td>
            <td class='attr-name'>autoload_paths</td>
            <td class='attr-desc'></td>
          </tr>
        
          <tr valign='top'>
            <td class='attr-rw'>
              [W]
            </td>
            <td class='attr-name'>eager_load_paths</td>
            <td class='attr-desc'></td>
          </tr>
        
          <tr valign='top'>
            <td class='attr-rw'>
              [W]
            </td>
            <td class='attr-name'>middleware</td>
            <td class='attr-desc'></td>
          </tr>
        
          <tr valign='top'>
            <td class='attr-rw'>
              [R]
            </td>
            <td class='attr-name'>root</td>
            <td class='attr-desc'></td>
          </tr>
        
      </table>
    


    <!-- Methods -->
    
      <div class="sectiontitle">Class Public methods</div>
      
        <div class="method">
          <div class="title method-title" id="method-c-new">
            
              <b>new</b>(root=nil)
            
            <a href="Configuration.html#method-c-new" name="method-c-new" class="permalink">Link</a>
          </div>
          
          
            <div class="description">
              
            </div>
          
          
          
          
          
            
            <div class="sourcecode">
              
              <p class="source-link">
                Source: 
                <a href="javascript:toggleSource('method-c-new_source')" id="l_method-c-new_source">show</a>
                
                  | <a href="https://github.com/rails/rails/blob/9d9b22f47a1928bf2fde3b7b574e3d8d4b1cca92/railties/lib/rails/engine/configuration.rb#L9" target="_blank" class="github_url">on GitHub</a>
                
              </p>
              <div id="method-c-new_source" class="dyn-source">
                <pre><span class="ruby-comment"># File railties/lib/rails/engine/configuration.rb, line 9</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword ruby-title">initialize</span>(<span class="ruby-identifier">root</span>=<span class="ruby-keyword">nil</span>)
  <span class="ruby-keyword">super</span>()
  <span class="ruby-ivar">@root</span> = <span class="ruby-identifier">root</span>
  <span class="ruby-ivar">@generators</span> = <span class="ruby-identifier">app_generators</span>.<span class="ruby-identifier">dup</span>
<span class="ruby-keyword">end</span></pre>
              </div>
            </div>
            
          </div>
                  
      <div class="sectiontitle">Instance Public methods</div>
      
        <div class="method">
          <div class="title method-title" id="method-i-autoload_once_paths">
            
              <b>autoload_once_paths</b>()
            
            <a href="Configuration.html#method-i-autoload_once_paths" name="method-i-autoload_once_paths" class="permalink">Link</a>
          </div>
          
          
            <div class="description">
              
            </div>
          
          
          
          
          
            
            <div class="sourcecode">
              
              <p class="source-link">
                Source: 
                <a href="javascript:toggleSource('method-i-autoload_once_paths_source')" id="l_method-i-autoload_once_paths_source">show</a>
                
                  | <a href="https://github.com/rails/rails/blob/9d9b22f47a1928bf2fde3b7b574e3d8d4b1cca92/railties/lib/rails/engine/configuration.rb#L82" target="_blank" class="github_url">on GitHub</a>
                
              </p>
              <div id="method-i-autoload_once_paths_source" class="dyn-source">
                <pre><span class="ruby-comment"># File railties/lib/rails/engine/configuration.rb, line 82</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword ruby-title">autoload_once_paths</span>
  <span class="ruby-ivar">@autoload_once_paths</span> <span class="ruby-operator">||=</span> <span class="ruby-identifier">paths</span>.<span class="ruby-identifier">autoload_once</span>
<span class="ruby-keyword">end</span></pre>
              </div>
            </div>
            
          </div>
        
        <div class="method">
          <div class="title method-title" id="method-i-autoload_paths">
            
              <b>autoload_paths</b>()
            
            <a href="Configuration.html#method-i-autoload_paths" name="method-i-autoload_paths" class="permalink">Link</a>
          </div>
          
          
            <div class="description">
              
            </div>
          
          
          
          
          
            
            <div class="sourcecode">
              
              <p class="source-link">
                Source: 
                <a href="javascript:toggleSource('method-i-autoload_paths_source')" id="l_method-i-autoload_paths_source">show</a>
                
                  | <a href="https://github.com/rails/rails/blob/9d9b22f47a1928bf2fde3b7b574e3d8d4b1cca92/railties/lib/rails/engine/configuration.rb#L86" target="_blank" class="github_url">on GitHub</a>
                
              </p>
              <div id="method-i-autoload_paths_source" class="dyn-source">
                <pre><span class="ruby-comment"># File railties/lib/rails/engine/configuration.rb, line 86</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword ruby-title">autoload_paths</span>
  <span class="ruby-ivar">@autoload_paths</span> <span class="ruby-operator">||=</span> <span class="ruby-identifier">paths</span>.<span class="ruby-identifier">autoload_paths</span>
<span class="ruby-keyword">end</span></pre>
              </div>
            </div>
            
          </div>
        
        <div class="method">
          <div class="title method-title" id="method-i-eager_load_paths">
            
              <b>eager_load_paths</b>()
            
            <a href="Configuration.html#method-i-eager_load_paths" name="method-i-eager_load_paths" class="permalink">Link</a>
          </div>
          
          
            <div class="description">
              
            </div>
          
          
          
          
          
            
            <div class="sourcecode">
              
              <p class="source-link">
                Source: 
                <a href="javascript:toggleSource('method-i-eager_load_paths_source')" id="l_method-i-eager_load_paths_source">show</a>
                
                  | <a href="https://github.com/rails/rails/blob/9d9b22f47a1928bf2fde3b7b574e3d8d4b1cca92/railties/lib/rails/engine/configuration.rb#L78" target="_blank" class="github_url">on GitHub</a>
                
              </p>
              <div id="method-i-eager_load_paths_source" class="dyn-source">
                <pre><span class="ruby-comment"># File railties/lib/rails/engine/configuration.rb, line 78</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword ruby-title">eager_load_paths</span>
  <span class="ruby-ivar">@eager_load_paths</span> <span class="ruby-operator">||=</span> <span class="ruby-identifier">paths</span>.<span class="ruby-identifier">eager_load</span>
<span class="ruby-keyword">end</span></pre>
              </div>
            </div>
            
          </div>
        
        <div class="method">
          <div class="title method-title" id="method-i-middleware">
            
              <b>middleware</b>()
            
            <a href="Configuration.html#method-i-middleware" name="method-i-middleware" class="permalink">Link</a>
          </div>
          
          
            <div class="description">
              <p>Returns the middleware stack for the engine.</p>
            </div>
          
          
          
          
          
            
            <div class="sourcecode">
              
              <p class="source-link">
                Source: 
                <a href="javascript:toggleSource('method-i-middleware_source')" id="l_method-i-middleware_source">show</a>
                
                  | <a href="https://github.com/rails/rails/blob/9d9b22f47a1928bf2fde3b7b574e3d8d4b1cca92/railties/lib/rails/engine/configuration.rb#L16" target="_blank" class="github_url">on GitHub</a>
                
              </p>
              <div id="method-i-middleware_source" class="dyn-source">
                <pre><span class="ruby-comment"># File railties/lib/rails/engine/configuration.rb, line 16</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword ruby-title">middleware</span>
  <span class="ruby-ivar">@middleware</span> <span class="ruby-operator">||=</span> <span class="ruby-constant">Rails</span><span class="ruby-operator">::</span><span class="ruby-constant">Configuration</span><span class="ruby-operator">::</span><span class="ruby-constant">MiddlewareStackProxy</span>.<span class="ruby-identifier">new</span>
<span class="ruby-keyword">end</span></pre>
              </div>
            </div>
            
          </div>
        
        <div class="method">
          <div class="title method-title" id="method-i-paths">
            
              <b>paths</b>()
            
            <a href="Configuration.html#method-i-paths" name="method-i-paths" class="permalink">Link</a>
          </div>
          
          
            <div class="description">
              
            </div>
          
          
          
          
          
            
            <div class="sourcecode">
              
              <p class="source-link">
                Source: 
                <a href="javascript:toggleSource('method-i-paths_source')" id="l_method-i-paths_source">show</a>
                
                  | <a href="https://github.com/rails/rails/blob/9d9b22f47a1928bf2fde3b7b574e3d8d4b1cca92/railties/lib/rails/engine/configuration.rb#L38" target="_blank" class="github_url">on GitHub</a>
                
              </p>
              <div id="method-i-paths_source" class="dyn-source">
                <pre><span class="ruby-comment"># File railties/lib/rails/engine/configuration.rb, line 38</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword ruby-title">paths</span>
  <span class="ruby-ivar">@paths</span> <span class="ruby-operator">||=</span> <span class="ruby-keyword">begin</span>
    <span class="ruby-identifier">paths</span> = <span class="ruby-constant">Rails</span><span class="ruby-operator">::</span><span class="ruby-constant">Paths</span><span class="ruby-operator">::</span><span class="ruby-constant">Root</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@root</span>)

    <span class="ruby-identifier">paths</span>.<span class="ruby-identifier">add</span> <span class="ruby-string">&quot;app&quot;</span>,                 <span class="ruby-identifier">eager_load</span><span class="ruby-operator">:</span> <span class="ruby-keyword">true</span>, <span class="ruby-identifier">glob</span><span class="ruby-operator">:</span> <span class="ruby-string">&quot;*&quot;</span>
    <span class="ruby-identifier">paths</span>.<span class="ruby-identifier">add</span> <span class="ruby-string">&quot;app/assets&quot;</span>,          <span class="ruby-identifier">glob</span><span class="ruby-operator">:</span> <span class="ruby-string">&quot;*&quot;</span>
    <span class="ruby-identifier">paths</span>.<span class="ruby-identifier">add</span> <span class="ruby-string">&quot;app/controllers&quot;</span>,     <span class="ruby-identifier">eager_load</span><span class="ruby-operator">:</span> <span class="ruby-keyword">true</span>
    <span class="ruby-identifier">paths</span>.<span class="ruby-identifier">add</span> <span class="ruby-string">&quot;app/helpers&quot;</span>,         <span class="ruby-identifier">eager_load</span><span class="ruby-operator">:</span> <span class="ruby-keyword">true</span>
    <span class="ruby-identifier">paths</span>.<span class="ruby-identifier">add</span> <span class="ruby-string">&quot;app/models&quot;</span>,          <span class="ruby-identifier">eager_load</span><span class="ruby-operator">:</span> <span class="ruby-keyword">true</span>
    <span class="ruby-identifier">paths</span>.<span class="ruby-identifier">add</span> <span class="ruby-string">&quot;app/mailers&quot;</span>,         <span class="ruby-identifier">eager_load</span><span class="ruby-operator">:</span> <span class="ruby-keyword">true</span>
    <span class="ruby-identifier">paths</span>.<span class="ruby-identifier">add</span> <span class="ruby-string">&quot;app/views&quot;</span>

    <span class="ruby-identifier">paths</span>.<span class="ruby-identifier">add</span> <span class="ruby-string">&quot;app/controllers/concerns&quot;</span>, <span class="ruby-identifier">eager_load</span><span class="ruby-operator">:</span> <span class="ruby-keyword">true</span>
    <span class="ruby-identifier">paths</span>.<span class="ruby-identifier">add</span> <span class="ruby-string">&quot;app/models/concerns&quot;</span>,      <span class="ruby-identifier">eager_load</span><span class="ruby-operator">:</span> <span class="ruby-keyword">true</span>

    <span class="ruby-identifier">paths</span>.<span class="ruby-identifier">add</span> <span class="ruby-string">&quot;lib&quot;</span>,                 <span class="ruby-identifier">load_path</span><span class="ruby-operator">:</span> <span class="ruby-keyword">true</span>
    <span class="ruby-identifier">paths</span>.<span class="ruby-identifier">add</span> <span class="ruby-string">&quot;lib/assets&quot;</span>,          <span class="ruby-identifier">glob</span><span class="ruby-operator">:</span> <span class="ruby-string">&quot;*&quot;</span>
    <span class="ruby-identifier">paths</span>.<span class="ruby-identifier">add</span> <span class="ruby-string">&quot;lib/tasks&quot;</span>,           <span class="ruby-identifier">glob</span><span class="ruby-operator">:</span> <span class="ruby-string">&quot;**/*.rake&quot;</span>

    <span class="ruby-identifier">paths</span>.<span class="ruby-identifier">add</span> <span class="ruby-string">&quot;config&quot;</span>
    <span class="ruby-identifier">paths</span>.<span class="ruby-identifier">add</span> <span class="ruby-string">&quot;config/environments&quot;</span>, <span class="ruby-identifier">glob</span><span class="ruby-operator">:</span> <span class="ruby-node">&quot;#{Rails.env}.rb&quot;</span>
    <span class="ruby-identifier">paths</span>.<span class="ruby-identifier">add</span> <span class="ruby-string">&quot;config/initializers&quot;</span>, <span class="ruby-identifier">glob</span><span class="ruby-operator">:</span> <span class="ruby-string">&quot;**/*.rb&quot;</span>
    <span class="ruby-identifier">paths</span>.<span class="ruby-identifier">add</span> <span class="ruby-string">&quot;config/locales&quot;</span>,      <span class="ruby-identifier">glob</span><span class="ruby-operator">:</span> <span class="ruby-string">&quot;*.{rb,yml}&quot;</span>
    <span class="ruby-identifier">paths</span>.<span class="ruby-identifier">add</span> <span class="ruby-string">&quot;config/routes.rb&quot;</span>

    <span class="ruby-identifier">paths</span>.<span class="ruby-identifier">add</span> <span class="ruby-string">&quot;db&quot;</span>
    <span class="ruby-identifier">paths</span>.<span class="ruby-identifier">add</span> <span class="ruby-string">&quot;db/migrate&quot;</span>
    <span class="ruby-identifier">paths</span>.<span class="ruby-identifier">add</span> <span class="ruby-string">&quot;db/seeds.rb&quot;</span>

    <span class="ruby-identifier">paths</span>.<span class="ruby-identifier">add</span> <span class="ruby-string">&quot;vendor&quot;</span>,              <span class="ruby-identifier">load_path</span><span class="ruby-operator">:</span> <span class="ruby-keyword">true</span>
    <span class="ruby-identifier">paths</span>.<span class="ruby-identifier">add</span> <span class="ruby-string">&quot;vendor/assets&quot;</span>,       <span class="ruby-identifier">glob</span><span class="ruby-operator">:</span> <span class="ruby-string">&quot;*&quot;</span>

    <span class="ruby-identifier">paths</span>
  <span class="ruby-keyword">end</span>
<span class="ruby-keyword">end</span></pre>
              </div>
            </div>
            
          </div>
        
        <div class="method">
          <div class="title method-title" id="method-i-root-3D">
            
              <b>root=</b>(value)
            
            <a href="Configuration.html#method-i-root-3D" name="method-i-root-3D" class="permalink">Link</a>
          </div>
          
          
            <div class="description">
              
            </div>
          
          
          
          
          
            
            <div class="sourcecode">
              
              <p class="source-link">
                Source: 
                <a href="javascript:toggleSource('method-i-root-3D_source')" id="l_method-i-root-3D_source">show</a>
                
                  | <a href="https://github.com/rails/rails/blob/9d9b22f47a1928bf2fde3b7b574e3d8d4b1cca92/railties/lib/rails/engine/configuration.rb#L74" target="_blank" class="github_url">on GitHub</a>
                
              </p>
              <div id="method-i-root-3D_source" class="dyn-source">
                <pre><span class="ruby-comment"># File railties/lib/rails/engine/configuration.rb, line 74</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword ruby-title">root=</span>(<span class="ruby-identifier">value</span>)
  <span class="ruby-ivar">@root</span> = <span class="ruby-identifier">paths</span>.<span class="ruby-identifier">path</span> = <span class="ruby-constant">Pathname</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">value</span>).<span class="ruby-identifier">expand_path</span>
<span class="ruby-keyword">end</span></pre>
              </div>
            </div>
            
          </div>
                    </div>

    </div>
  </body>
</html>    